|
|
@@ -49,8 +49,9 @@ urlpatterns += [
|
49
|
49
|
url(r'^simditor/', include(('simditor.urls', 'simditor'), namespace='simditor'))
|
50
|
50
|
]
|
51
|
51
|
|
52
|
|
-urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
53
|
|
-urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
52
|
+if settings.DEBUG:
|
|
53
|
+ urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
|
54
|
+ urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
54
|
55
|
|
55
|
56
|
# AdminSite
|
56
|
57
|
admin.site.site_header = '【盈多伙伴】尖货接龙后台管理系统'
|